package com.jumi.microservice.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 部门值对象
 *
 * @author Administrator
 */
@ApiModel(value="DepartmentQuery值对象", description="DepartmentQuery值对象")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DepartmentQuery implements Serializable {

    @ApiModelProperty(value = "部门主键id")
    private Long id;
    @ApiModelProperty(value = "部门名称")
    private String label;
    @ApiModelProperty(value = "子菜单列表")
    List<DepartmentQuery> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<DepartmentQuery> getChildren() {
        return children;
    }

    public void setChildren(List<DepartmentQuery> children) {
        this.children = children;
    }
}
